package com.example.mapping.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
    * 字段映射表
    */
@Data
@TableName(value = "field_mapping")
public class FieldMapping {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 原字段名
     */
    @TableField(value = "srcField")
    private String srcField;

    /**
     * 目标字段类型
     */
    @TableField(value = "destFieldType")
    private String destFieldType;

    /**
     * 目标字段名
     */
    @TableField(value = "destField")
    private String destField;

    /**
     * 规则ID
     */
    @TableField(value = "ruleIds")
    private String ruleIds;

    /**
     * 流程ID
     */
    @TableField(value = "flowId")
    private Long flowId;

    /**
     * 字典ID
     */
    @TableField(value = "dictId")
    private Long dictId;

    /**
     * 值映射ID
     */
    @TableField(value = "valueMappingIds")
    private String valueMappingIds;

    /**
     * 是否删除（0-正常，1-修改过，2-已删除）
     */
    @TableField(value = "sys_delete")
    private Integer sysDelete;

    /**
     * 创建人
     */
    @TableField(value = "createBy")
    private String createBy;

    /**
     * 创建时间
     */
    @TableField(value = "createTime")
    private Long createTime;

    /**
     * 上次维护人
     */
    @TableField(value = "actionBy")
    private String actionBy;

    /**
     * 最近一次操作时间
     */
    @TableField(value = "actionTime")
    private Long actionTime;

    /**
     * version
     */
    @TableField(value = "version")
    private Long version;

    /**
     * 0:req 1:resp
     */
    @TableField(value = "type")
    private Integer type;
}